package com.neusoft.util;

public class UserThreadUtil {
	
	//每个用户线程都会对应一个ThreadLocal实例
	private static ThreadLocal<Long> thread = new ThreadLocal<Long>();

	//向当前线程实例中存入empid
	public static void setEmpId(Long empid) {
		thread.set(empid);
	}
	
	//从当前线程中获取empid
	public static Long getEmpId() {
		return thread.get();
	}
}
